//
//  ViewController.m
//  value
//
//  Created by Reeves Goo on 16/2/29.
//  Copyright © 2016年 ReevesGoo. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UISlider *sliderrrrrr;

@property (weak, nonatomic) IBOutlet UIButton *buttonnnnnn;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [_sliderrrrrr setThumbImage:[UIImage imageNamed:@"222.jpg"] forState:UIControlStateNormal];
    
//     [_sliderrrrrr setThumbImage:[UIImage imageNamed:@"222.jpg"] forState:UIControlStateHighlighted ];
//    _sliderrrrrr.continuous = YES;
    
    [_buttonnnnnn setBackgroundImage:[UIImage imageNamed:@"222.jpg"] forState:UIControlStateNormal];
    
//    [_buttonnnnnn sizeToFit];
    
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)fdfsdfdsf:(UISlider *)sender {
    
    
    NSLog(@"222222--------%.2f",sender.value);
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

//    int value = 10;
//    void (^aaablock)()=^{
//        
//        NSLog(@"the value is %d",value);
//        
//    };
//    
//    
//    
//    
//    value = 12;
//    
//    aaablock();
//

}




@end
